import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home/home.vue"
import Login from "../components/Login/login.vue"
import wineShop from "../components/index/wineShop.vue"
import Route from "../components/Route/route.vue"
import Approve from "../components/approve/Approve.vue"
import Check from "../components/Route/Check.vue"
import Expenditure from "../components/expenditure/Expenditure.vue"
<<<<<<< HEAD
import Role from "../components/System/role.vue"
import User from "../components/System/user.vue"
=======
import Sysmanager from "../components/sysmanager/Sysmanager.vue"
>>>>>>> ba683ca (第八次提交)
Vue.use(Router)

export default new Router({
<<<<<<< HEAD
  routes: [
      {
        path:'/',
        redirect:'/login'
      },
      {
        path:'/login',
        component:Login
      },
      {
        path:'/home',
        component:Home,
        redirect:'/wineShop',
        children:[
          {
            path:'/wineShop',
            name:'首页详情',
            component:wineShop
          },
          {
            path:'/route',
            name:'表格详情',
            component:Route
          },
          {
            path:'/approve',
            name:'支出详情',
            component:Approve
          },
          {
            path:'/expenditure',
            name:'审批详情',
            component:Expenditure
          },
           {
              path:'/check',
              name:'支出详情',
              component:Check
          },
          {
            path:'/role',
            name:'角色管理',
            component:Role
          },
          {
            path:'/user',
            name:'用户列表',
            component:User
          }
        ]
      }
  ]
=======
    routes: [{
            path: '/',
            redirect: '/login'
        },
        {
            path: '/login',
            component: Login
        },
        {
            path: '/home',
            component: Home,
            redirect: '/wineShop',
            children: [{
                    path: '/wineShop',
                    component: wineShop
                },
                {
                    path: '/route',
                    component: Route
                },
                {
                    path: '/approve',
                    component: Approve
                },
                {
                    path: '/expenditure',
                    component: Expenditure
                },
                {
                    path: '/check',
                    component: Check
                },
                {
                    path: '/sysmanager',
                    component: Sysmanager
                }
            ]
        }
    ]
>>>>>>> ba683ca (第八次提交)
})